package com.dqyt.khjc.mapper;

import com.dqyt.khjc.bean.CustomerBean;
import com.dqyt.khjc.bean.ManufacturerBean;
import com.dqyt.khjc.bean.ResultMsg;

import java.util.List;

public interface ManufacturerMapper {


    /**
     * 查询制造厂商列表
     * @return
     */
    public List<ManufacturerBean> getManufacturers();


    /**
     * 新增制造厂商
     * @param manufacturerBean
     * @return
     */
    public int addManufacturers(ManufacturerBean manufacturerBean);

    /**
     * 查询名称
     * @return
     */
    public List<ManufacturerBean> getManufacturersByName(String name);


    /**
     * 分页查询制造厂商
     * @param page
     * @param size
     * @param name
     * @param enname
     * @return
     */
    public List<ManufacturerBean>  getZzcsListPage(Integer page, Integer size, String name, String enname);


    /**
     * 查询制造厂商总条数
     * @param name
     * @param enname
     * @return
     */
    public  long getZzcsTotalNumber(String name, String enname);

    /**
     * 查询条数
     * @param name
     * @return
     */
    public long getmanufacturerByName(String name);


    /**
     * 查询条数
     * @param enname
     * @return
     */
    public long getmanufacturerByenName(String enname);


    public long getmanufacturerByenAbridge(String abridge);

    /**
     * 根据id删除制造厂商
     * @param id
     * @return
     */
    public long delZzcs(long id);

    /**
     * 修改
     * @param id
     * @param name
     * @param enname
     * @return
     */
    public long updateZzcs(long id,String name,String enname,String abridge);



    /**
     * 查询条数
     * @param name
     * @return
     */
    public ManufacturerBean getmanufacturerByName2(String name);


    /**
     * 查询条数
     * @param enname
     * @return
     */
    public ManufacturerBean getmanufacturerByenName2(String enname);


    public ManufacturerBean getmanufacturerByenAbridge2(String abridge);
}
